package joney.main.perspectives;

import joney.main.views.report.BreakdownView;
import joney.main.views.report.PieChartView;

import org.eclipse.ui.IPageLayout;
import org.eclipse.ui.IPerspectiveFactory;

public class ReportPerspective implements IPerspectiveFactory {

	public static final String ID = "joney.reportperspective";
	
	public void createInitialLayout(IPageLayout layout) {
		layout.addPerspectiveShortcut(AccountPerspective.ID);
		
		String editorArea = layout.getEditorArea();

		layout.setEditorAreaVisible(false);
		layout.setFixed(false);
		
		
		layout.addStandaloneView(BreakdownView.ID,false,IPageLayout.LEFT, 0.2f, editorArea);
		//layout.addView(GraphView.ID,IPageLayout.RIGHT, 0.8f, editorArea);
		layout.addStandaloneView(PieChartView.ID,false, IPageLayout.RIGHT, 0.2f, editorArea);
	}

}
